package edu.rit.drh4818.fire.emitter;

import java.util.Random;


/**
 * Emit 4 pillars in the outside corners.
 * 
 * @author Darren Headrick
 *
 */
public class OutsideEmitter implements Emitter 
{

	public static String NAME = "Outside";
	
	/*
	 * (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString()
	{
		return NAME;
	}
	
	public short[][][] emit(short[][][] base) 
	{
		Random r = new Random();
		
		for( int x = 5; x < 20; x++ )
		{
			for( int z = 5; z < 20; z++ )
			{
				base[x][1][z] = (short)(Math.abs( r.nextInt() ) % 150);
				base[x][1][base.length-1-z] = (short)(Math.abs( r.nextInt() ) % 150);
				base[base.length-1-x][1][z] = (short)(Math.abs( r.nextInt() ) % 150);
				base[base.length-1-x][1][base.length-1-z] = (short)(Math.abs( r.nextInt() ) % 150);
			}
		}
		return base;
	}
	
	
}
